-- GENERATED SPELL FOR [Tyrantus] --


function spell0_20931(pUnit, Event) --@Gushing Wound,n/a--
pUnit:FullCastSpellOnTarget(35321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20931', 25000, 1)
end

function spell1_20931(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(36629,pUnit)
pUnit:RegisterEvent('Sorts_20931', 5326, 1)
end

function Sorts_20931(pUnit, Event)
local choix_sorts_20931 = math.random(0, 1)
if choix_sorts_20931 == 0 then
pUnit:RegisterEvent('spell0_20931', 1, 1)
end
if choix_sorts_20931 == 1 then
pUnit:RegisterEvent('spell1_20931', 1, 1)
end
end

function mob20931_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20931', math.random(1500, 3000), 1)
end

function mob20931_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20931_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20931_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20931, 1, 'mob20931_Action')
RegisterUnitEvent(20931, 2, 'mob20931_Leave')
RegisterUnitEvent(20931, 3, 'mob20931_Kill')
RegisterUnitEvent(20931, 4, 'mob20931_Die')
